package com.training.permission.service.chengshu;

import java.util.List;

import com.training.pojo.chengshu.IsRolePermission;
import com.training.pojo.chengshu.UFunction;
import com.training.pojo.chengshu.URole;
import com.training.pojo.chengshu.UUser;
import com.training.pojo.chengshu.UserRole;

public interface IPermissionService {
	public List<UUser> listUser(Integer start, Integer max, String str);
	public List<URole> listRole(Integer start,Integer end,String str);
	public Integer countRole(String str);
	public Integer countUser(String str);
	//新增角色业务
	public boolean newRole(URole role);
	//删除角色业务
	public boolean delRole(List<Integer> id);
	//修改员工角色
	public boolean updateUserRole(UserRole role);
	//遍历角色
	public List<URole> listRole(Integer id);
	//搜索员工的角色号
	public URole queryRoleId(Integer id);
	//遍历角色权限
	public List<UFunction> listuf(URole role);
	//遍历所有权限
	public List<UFunction> listAllUF();
	//设置前台权限显示
	public List<IsRolePermission> listRolePer(List<UFunction> list,List<UFunction> allList);
	//修改权限
	public boolean updatePermission(String[] id,String roleid);
}
